﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="uxDiscussion.ascx.cs"
    Inherits="Front_UserControl_uxDiscussion" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<style type="text/css">
    .TabTitals
    {
        text-align: left;
        vertical-align: middle;
        font-family: Times New Roman;
        font-size: 18pt;
        font-weight: bold;
        margin-left: 20px;
        margin-top: 10px;
    }
</style>
<table>
    <tr>
        <td align="center">
            <table>
                <tr>
                    <td align="center" valign="bottom" height="10px">
                        <telerik:RadTabStrip ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
                            SelectedIndex="0" Align="Center">
                            <Tabs>
                                <telerik:RadTab Text="All Topics">
                                </telerik:RadTab>
                                <telerik:RadTab Text="Deal Topics">
                                </telerik:RadTab>
                              <%--  <telerik:RadTab Text="City Topics">
                                </telerik:RadTab>--%>
                                <telerik:RadTab Text="General Topics">
                                </telerik:RadTab>
                            </Tabs>
                        </telerik:RadTabStrip>
                    </td>
                </tr>
                <tr>
                    <td align="center" valign="top" style="background-color: White">
                       <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>--%>
                                <table>
                                    <tr>
                                        <td width="19">
                                            <img src="images/curve1.jpg" width="19" height="17" />
                                        </td>
                                        <td width="665" background="images/top_bg.jpg">
                                            <img src="images/top_bg.jpg" width="3" height="17" />
                                        </td>
                                        <td width="19">
                                            <img src="images/curve4.jpg" width="19" height="17" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td background="images/left_bg.jpg">
                                            <img src="images/left_bg.jpg" width="19" height="3" />
                                        </td>
                                        <td>
                                            <telerik:RadMultiPage ID="RadMultiPage1" runat="server" SelectedIndex="0" CssClass="multiPage">
                                                <telerik:RadPageView ID="RadPageViewAll" runat="server" align="Center" BackColor="White">
                                                    <div class="TabTitals">
                                                        All Topics</div>
                                                    <div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: medium">
                                                            <table width="100%" >
                                                                <tbody>
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center" valign="middle" width="45%">
                                                                            <asp:Label ID="TopicLabel" runat="server" Text="Topic" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="12%">
                                                                            <asp:Label ID="Label11" runat="server" Text="Category" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="12%">
                                                                            <asp:Label ID="UserIDLabel" runat="server" Text="Replies" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="15%">
                                                                            <asp:Label ID="CreatedDateTimeLabel" runat="server" Text="Last Reply" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="4">
                                                                            <hr />
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: small">
                                                            <asp:ListView ID="lvAllTopics" runat="server" OnDataBound="lvAllTopics_DataBound"
                                                                ItemPlaceholderID="itemPlaceholderAll" DataKeyNames="DiscussionMasterID">
                                                                <ItemTemplate>
                                                                    <div style="width: 100%;">
                                                                        <table>
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td align="left" valign="middle" width="45%">
                                                                                        <input type="hidden" runat="server" id="hiddenDID" value='<%# Eval("DiscussionMasterID") %>' />
                                                                                        <input type="hidden" runat="server" id="hiddenUserID" value='<%# Eval("UserID") %>' />
                                                                                        <asp:LinkButton ID="TopicLabel" runat="server" Font-Underline="false" PostBackUrl='<%# Eval("DiscussionMasterID","~/DiscussionReply.aspx?TID={0}") %>'
                                                                                            Text='<%# Eval("Topic") %>'>
                                                                                        </asp:LinkButton>
                                                                                        <br />
                                                                                        <asp:Label ID="Label1" runat="server" Text='Started By' Font-Size="Smaller" />
                                                                                        <asp:Image ID="imgByUser" runat="server" BorderColor="Black" BorderStyle="Solid"
                                                                                            BorderWidth="1px" Height="20px" Width="20px" AlternateText="ProfileImage" ImageUrl='<%# Eval("UserID","~/GetImage.aspx?UserID={0}") %>' />
                                                                                        <asp:Label ID="lblUserC" runat="server" Text='' Font-Size="Smaller" />
                                                                                        <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Eval("CreatedDateTime") %>'
                                                                                            Font-Size="Smaller" />
                                                                                        <br />
                                                                                    </td>
                                                                                    <td align="center" valign="middle" width="12%">
                                                                                        <asp:Label ID="lblCategoryName" runat="server" Text='<%# Eval("CategoryName") %>' />
                                                                                    </td>
                                                                                    <td align="center" valign="middle" width="12%">
                                                                                        <asp:Label ID="lblReplies" runat="server" Text='<%# Eval("Replies") %>' />
                                                                                    </td>
                                                                                    <td align="left" valign="middle" width="15%">
                                                                                        <table>
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        <asp:Image ID="imgLR" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
                                                                                                            Height="40px" Width="40px" AlternateText="" ImageUrl="~/GetImage.aspx?UserID=0" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <table>
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblUserLR" runat="server" Text='' />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblTimeLR" runat="server" Text='' Font-Size="Smaller" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="4">
                                                                                        <hr />
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </ItemTemplate>
                                                                <EmptyDataTemplate>
                                                                    <span>No Discusstion Is Available.</span>
                                                                </EmptyDataTemplate>
                                                                <InsertItemTemplate>
                                                                </InsertItemTemplate>
                                                                <LayoutTemplate>
                                                                    <div id="itemPlaceholderContainerAll" runat="server" style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                                                        <span id="itemPlaceholderAll" runat="server" />
                                                                    </div>
                                                                    <div style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;
                                                                        color: #000000;">
                                                                        <asp:DataPager ID="ListDataPagerAll" runat="server" PageSize="20" EnableViewState="true"
                                                                            PagedControlID="lvAllTopics">
                                                                            <Fields>
                                                                                <asp:NextPreviousPagerField ButtonType="Link" FirstPageText="<<  " ShowFirstPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                                <asp:NumericPagerField ButtonCount="10" />
                                                                                <asp:NextPreviousPagerField ButtonType="Link" LastPageText="  >>" ShowLastPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                            </Fields>
                                                                        </asp:DataPager>
                                                                    </div>
                                                                </LayoutTemplate>
                                                            </asp:ListView>
                                                        </div>
                                                        <div style="text-align: left; background-color: White; height: 135px; width: auto;
                                                            max-width: 95%; margin-top: 10px; font-size: medium">
                                                            <hr />
                                                            <hr />
                                                            <asp:LoginView ID="LoginViewToStatrtAllDiscussion" runat="server">
                                                                <AnonymousTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" Font-Size="Larger"
                                                                            NavigateUrl="~/Login.aspx" Text="Sign in to start discussion"></asp:HyperLink>
                                                                    </div>
                                                                </AnonymousTemplate>
                                                                <LoggedInTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <table cellpadding="0px" cellspacing="0px">
                                                                            <tr>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblSome1" runat="server" Font-Bold="true" Font-Size="8pt" Text="Discussion Topic : " />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtDiscussionTopic" runat="server" TextMode="MultiLine" Columns="50"
                                                                                                    Rows="10" Height="80px" MaxLength="2000"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px" style="height: 100%">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td valign="top">
                                                                                                    <asp:RequiredFieldValidator ID="RFVTPC" Font-Size="10pt" runat="server" ControlToValidate="txtDiscussionTopic"
                                                                                                        ValidationGroup="VG1" ErrorMessage="Discussion topic can not be blank"></asp:RequiredFieldValidator>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td valign="bottom">
                                                                                                    <asp:Button ID="btnAllDiscussionTopic" runat="server" Text="Submit" ValidationGroup="VG1"
                                                                                                        CausesValidation="true" OnClick="btnAllDiscussionTopic_Click" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </LoggedInTemplate>
                                                            </asp:LoginView>
                                                        </div>
                                                        <asp:ObjectDataSource ID="ODSAllTopics" runat="server" TypeName="DiscussionMaster"
                                                            SelectMethod="DiscussionMaster_Modified" SelectCountMethod="DiscussionMasterCount_Modified"
                                                            EnablePaging="True">
                                                            <SelectParameters>
                                                                <asp:Parameter Name="minimumRow" Type="Int32" DefaultValue="3" />
                                                                <asp:Parameter Name="startPageIndex" Type="Int32" DefaultValue="0" />
                                                                <asp:Parameter Name="startRowIndex" Type="Int32" DefaultValue="0" />
                                                            </SelectParameters>
                                                        </asp:ObjectDataSource>
                                                    </div>
                                                </telerik:RadPageView>
                                                <telerik:RadPageView ID="RadPageViewDeal" runat="server" CssClass="pageViewEducation"
                                                    align="Center" BackColor="White">
                                                    <div class="TabTitals">
                                                        Deal Topics</div>
                                                    <div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: medium">
                                                            <table width="100%">
                                                                <tbody>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center" valign="middle" width="60%">
                                                                            <asp:Label ID="Label2" runat="server" Text="Topic" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="10%">
                                                                            <asp:Label ID="Label3" runat="server" Text="Replies" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="25%">
                                                                            <asp:Label ID="Label4" runat="server" Text="Last Reply" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: small">
                                                            <asp:ListView ID="lvDealTopics" runat="server" OnDataBound="lvAllTopics_DataBound"
                                                                ItemPlaceholderID="itemPlaceholderDeal" DataKeyNames="DiscussionMasterID">
                                                                <ItemTemplate>
                                                                    <div style="width: 100%;">
                                                                        <table width="100%" cellpadding="3px" cellspacing="3px">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td align="left" valign="middle" width="60%">
                                                                                        <input type="hidden" runat="server" id="hiddenDID" value='<%# Eval("DiscussionMasterID") %>' />
                                                                                        <input type="hidden" runat="server" id="hiddenUserID" value='<%# Eval("UserID") %>' />
                                                                                        <asp:LinkButton ID="TopicLabel" runat="server" Font-Underline="false" PostBackUrl='<%# Eval("DiscussionMasterID","~/DiscussionReply.aspx?TID={0}") %>'
                                                                                            Text='<%# Eval("Topic") %>'>
                                                                                        </asp:LinkButton>
                                                                                        <br />
                                                                                        <asp:Label ID="Label1" runat="server" Text='Started By' Font-Size="Smaller" />
                                                                                        <asp:Image ID="imgByUser" runat="server" BorderColor="Black" BorderStyle="Solid"
                                                                                            BorderWidth="1px" Height="20px" Width="20px" AlternateText="ProfileImage" ImageUrl='<%# Eval("UserID","~/GetImage.aspx?UserID={0}") %>' />
                                                                                        <asp:Label ID="lblUserC" runat="server" Text='' Font-Size="Smaller" />
                                                                                        <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Eval("CreatedDateTime") %>'
                                                                                            Font-Size="Smaller" />
                                                                                        <br />
                                                                                    </td>
                                                                                    <td align="center" valign="middle" width="10%">
                                                                                        <asp:Label ID="lblReplies" runat="server" Text='<%# Eval("Replies") %>' />
                                                                                    </td>
                                                                                    <td align="left" valign="middle" width="25%">
                                                                                        <table>
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        <asp:Image ID="imgLR" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
                                                                                                            Height="40px" Width="40px" AlternateText="ProfileImage" ImageUrl="~/GetImage.aspx?UserID=0" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <table>
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblUserLR" runat="server" Text='' />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblTimeLR" runat="server" Text='' Font-Size="Smaller" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="3">
                                                                                        <hr />
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </ItemTemplate>
                                                                <EmptyDataTemplate>
                                                                    <span>No Discusstion Is Available.</span>
                                                                </EmptyDataTemplate>
                                                                <InsertItemTemplate>
                                                                </InsertItemTemplate>
                                                                <LayoutTemplate>
                                                                    <div id="itemPlaceholderContainerDeal" runat="server" style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                                                        <span id="itemPlaceholderDeal" runat="server" />
                                                                    </div>
                                                                    <div style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;
                                                                        color: #000000;">
                                                                        <asp:DataPager ID="ListDataPagerDeal" runat="server" PageSize="20" EnableViewState="true"
                                                                            PagedControlID="lvDealTopics">
                                                                            <Fields>
                                                                                <asp:NextPreviousPagerField ButtonType="Link" FirstPageText="<<  " ShowFirstPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                                <asp:NumericPagerField ButtonCount="10" />
                                                                                <asp:NextPreviousPagerField ButtonType="Link" LastPageText="  >>" ShowLastPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                            </Fields>
                                                                        </asp:DataPager>
                                                                    </div>
                                                                </LayoutTemplate>
                                                            </asp:ListView>
                                                        </div>
                                                        <div style="text-align: left; background-color: White; height: 135px; width: auto;
                                                            max-width: 95%; margin-top: 10px; font-size: medium">
                                                            <hr />
                                                            <hr />
                                                            <asp:LoginView ID="LoginViewToStatrtDealDiscussion" runat="server">
                                                                <AnonymousTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" Font-Size="Larger"
                                                                            NavigateUrl="~/Login.aspx" Text="Sign in to start discussion"></asp:HyperLink>
                                                                    </div>
                                                                </AnonymousTemplate>
                                                                <LoggedInTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <table cellpadding="0px" cellspacing="0px">
                                                                            <tr>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblSome1" runat="server" Font-Bold="true" Font-Size="8pt" Text="Discussion Topic : " />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtDealDiscussionTopic" runat="server" TextMode="MultiLine" Columns="50"
                                                                                                    Rows="10" Height="80px" MaxLength="2000"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px" style="height: 100%">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td valign="top">
                                                                                                    <asp:RequiredFieldValidator ID="RFVTPC" Font-Size="10pt" runat="server" ControlToValidate="txtDealDiscussionTopic"
                                                                                                        ValidationGroup="VG2" ErrorMessage="Discussion topic can not be blank"></asp:RequiredFieldValidator>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td valign="bottom">
                                                                                                    <asp:Button ID="btnDealDiscussionTopic" runat="server" Text="Submit" ValidationGroup="VG2"
                                                                                                        CausesValidation="true" OnClick="btnDealDiscussionTopic_Click" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </LoggedInTemplate>
                                                            </asp:LoginView>
                                                        </div>
                                                        <asp:ObjectDataSource ID="ODSDealTopics" runat="server" TypeName="DiscussionMaster"
                                                            SelectMethod="DiscussionMaster_Deal" SelectCountMethod="DiscussionMasterCount_Deal"
                                                            EnablePaging="True">
                                                            <SelectParameters>
                                                                <asp:Parameter Name="minimumRow" Type="Int32" DefaultValue="3" />
                                                                <asp:Parameter Name="startPageIndex" Type="Int32" DefaultValue="0" />
                                                                <asp:Parameter Name="startRowIndex" Type="Int32" DefaultValue="0" />
                                                            </SelectParameters>
                                                        </asp:ObjectDataSource>
                                                    </div>
                                                </telerik:RadPageView>
                                                <%--<telerik:RadPageView ID="RadPageViewCity" runat="server" align="Center" BackColor="White">
                                                    <div class="TabTitals">
                                                        City Topics</div>
                                                    <div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: medium">
                                                            <table width="100%">
                                                                <tbody>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center" valign="middle" width="60%">
                                                                            <asp:Label ID="Label8" runat="server" Text="Topic" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="10%">
                                                                            <asp:Label ID="Label9" runat="server" Text="Replies" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="25%">
                                                                            <asp:Label ID="Label10" runat="server" Text="Last Reply" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: small">
                                                            <asp:ListView ID="lvCityTopics" runat="server" OnDataBound="lvAllTopics_DataBound"
                                                                ItemPlaceholderID="itemPlaceholderCity" DataKeyNames="DiscussionMasterID">
                                                                <ItemTemplate>
                                                                    <div style="width: 100%;">
                                                                        <table width="100%" cellpadding="3px" cellspacing="3px">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td align="left" valign="middle" width="60%">
                                                                                        <input type="hidden" runat="server" id="hiddenDID" value='<%# Eval("DiscussionMasterID") %>' />
                                                                                        <input type="hidden" runat="server" id="hiddenUserID" value='<%# Eval("UserID") %>' />
                                                                                        <asp:LinkButton ID="TopicLabel" runat="server" Font-Underline="false" PostBackUrl='<%# Eval("DiscussionMasterID","~/DiscussionReply.aspx?TID={0}") %>'
                                                                                            Text='<%# Eval("Topic") %>'>
                                                                                        </asp:LinkButton>
                                                                                        <br />
                                                                                        <asp:Label ID="Label1" runat="server" Text='Started By' Font-Size="Smaller" />
                                                                                        <asp:Image ID="imgByUser" runat="server" BorderColor="Black" BorderStyle="Solid"
                                                                                            BorderWidth="1px" Height="20px" Width="20px" AlternateText="ProfileImage" ImageUrl='<%# Eval("UserID","~/GetImage.aspx?UserID={0}") %>' />
                                                                                        <asp:Label ID="lblUserC" runat="server" Text='' Font-Size="Smaller" />
                                                                                        <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Eval("CreatedDateTime") %>'
                                                                                            Font-Size="Smaller" />
                                                                                        <br />
                                                                                    </td>
                                                                                    <td align="center" valign="middle" width="10%">
                                                                                        <asp:Label ID="lblReplies" runat="server" Text='<%# Eval("Replies") %>' />
                                                                                    </td>
                                                                                    <td align="left" valign="middle" width="25%">
                                                                                        <table>
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        <asp:Image ID="imgLR" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
                                                                                                            Height="40px" Width="40px" AlternateText="ProfileImage" ImageUrl="~/GetImage.aspx?UserID=0" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <table>
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblUserLR" runat="server" Text='' />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblTimeLR" runat="server" Text='' Font-Size="Smaller" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="3">
                                                                                        <hr />
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </ItemTemplate>
                                                                <EmptyDataTemplate>
                                                                    <span>No Discusstion Is Available.</span>
                                                                </EmptyDataTemplate>
                                                                <InsertItemTemplate>
                                                                </InsertItemTemplate>
                                                                <LayoutTemplate>
                                                                    <div id="itemPlaceholderContainerCity" runat="server" style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                                                        <span id="itemPlaceholderCity" runat="server" />
                                                                    </div>
                                                                    <div style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;
                                                                        color: #000000;">
                                                                        <asp:DataPager ID="ListDataPagerCity" runat="server" PageSize="20" EnableViewState="true"
                                                                            PagedControlID="lvCityTopics">
                                                                            <Fields>
                                                                                <asp:NextPreviousPagerField ButtonType="Link" FirstPageText="<<  " ShowFirstPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                                <asp:NumericPagerField ButtonCount="10" />
                                                                                <asp:NextPreviousPagerField ButtonType="Link" LastPageText="  >>" ShowLastPageButton="True"
                                                                                    ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                            </Fields>
                                                                        </asp:DataPager>
                                                                    </div>
                                                                </LayoutTemplate>
                                                            </asp:ListView>
                                                        </div>
                                                        <div style="text-align: left; background-color: White; height: 135px; width: auto;
                                                            max-width: 95%; margin-top: 10px; font-size: medium">
                                                            <hr />
                                                            <hr />
                                                            <asp:LoginView ID="LoginViewToStatrtCityDiscussion" runat="server">
                                                                <AnonymousTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" Font-Size="Larger"
                                                                            NavigateUrl="~/Login.aspx" Text="Sign in to start discussion"></asp:HyperLink>
                                                                    </div>
                                                                </AnonymousTemplate>
                                                                <LoggedInTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <table cellpadding="0px" cellspacing="0px">
                                                                            <tr>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblSome1" runat="server" Font-Bold="true" Font-Size="8pt" Text="Discussion Topic : " />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtCityDiscussionTopic" runat="server" TextMode="MultiLine" Columns="50"
                                                                                                    Rows="10" Height="80px" MaxLength="2000"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px" style="height: 100%">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td valign="top">
                                                                                                    <asp:RequiredFieldValidator ID="RFVTPC" Font-Size="10pt" runat="server" ControlToValidate="txtCityDiscussionTopic"
                                                                                                        ValidationGroup="VG3" ErrorMessage="Discussion topic can not be blank"></asp:RequiredFieldValidator>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td valign="bottom">
                                                                                                    <asp:Button ID="btnCityDiscussionTopic" runat="server" Text="Submit" ValidationGroup="VG3"
                                                                                                        CausesValidation="true" OnClick="btnCityDiscussionTopic_Click" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </LoggedInTemplate>
                                                            </asp:LoginView>
                                                        </div>
                                                        <asp:ObjectDataSource ID="ODSCityTopics" runat="server" TypeName="DiscussionMaster"
                                                            SelectMethod="DiscussionMaster_City" SelectCountMethod="DiscussionMasterCount_City"
                                                            EnablePaging="True">
                                                            <SelectParameters>
                                                                <asp:Parameter Name="minimumRow" Type="Int32" DefaultValue="3" />
                                                                <asp:Parameter Name="startPageIndex" Type="Int32" DefaultValue="0" />
                                                                <asp:Parameter Name="startRowIndex" Type="Int32" DefaultValue="0" />
                                                            </SelectParameters>
                                                        </asp:ObjectDataSource>
                                                    </div>
                                                </telerik:RadPageView>--%>
                                                <telerik:RadPageView ID="RadPageViewZupon" runat="server" align="Center" BackColor="White">
                                                    <div class="TabTitals">
                                                        Zupon Topics</div>
                                                    <div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: medium">
                                                            <table width="100%">
                                                                <tbody>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td align="center" valign="middle" width="60%">
                                                                            <asp:Label ID="Label5" runat="server" Text="Topic" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="10%">
                                                                            <asp:Label ID="Label6" runat="server" Text="Replies" />
                                                                        </td>
                                                                        <td align="center" valign="middle" width="25%">
                                                                            <asp:Label ID="Label7" runat="server" Text="Last Reply" />
                                                                        </td>
                                                                    </tr>
                                                                    <tr>
                                                                        <td colspan="3">
                                                                            <hr />
                                                                            <hr />
                                                                        </td>
                                                                    </tr>
                                                                </tbody>
                                                            </table>
                                                        </div>
                                                        <div style="text-align: left; width: auto; max-width: 95%; font-size: small">
                                                            <asp:ListView ID="lvZuponTopics" runat="server" OnDataBound="lvAllTopics_DataBound"
                                                                ItemPlaceholderID="itemPlaceholderZupon" DataKeyNames="DiscussionMasterID">
                                                                <ItemTemplate>
                                                                    <div style="width: 100%;">
                                                                        <table width="100%" cellpadding="3px" cellspacing="3px">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td align="left" valign="middle" width="60%">
                                                                                        <input type="hidden" runat="server" id="hiddenDID" value='<%# Eval("DiscussionMasterID") %>' />
                                                                                        <input type="hidden" runat="server" id="hiddenUserID" value='<%# Eval("UserID") %>' />
                                                                                        <asp:LinkButton ID="TopicLabel" runat="server" Font-Underline="false" PostBackUrl='<%# Eval("DiscussionMasterID","~/DiscussionReply.aspx?TID={0}") %>'
                                                                                            Text='<%# Eval("Topic") %>'>
                                                                                        </asp:LinkButton>
                                                                                        <br />
                                                                                        <asp:Label ID="Label1" runat="server" Text='Started By' Font-Size="Smaller" />
                                                                                        <asp:Image ID="imgByUser" runat="server" BorderColor="Black" BorderStyle="Solid"
                                                                                            BorderWidth="1px" Height="20px" Width="20px" AlternateText="ProfileImage" ImageUrl='<%# Eval("UserID","~/GetImage.aspx?UserID={0}") %>' />
                                                                                        <asp:Label ID="lblUserC" runat="server" Text='' Font-Size="Smaller" />
                                                                                        <asp:Label ID="CreatedDateTimeLabel" runat="server" Text='<%# Eval("CreatedDateTime") %>'
                                                                                            Font-Size="Smaller" />
                                                                                        <br />
                                                                                    </td>
                                                                                    <td align="center" valign="middle" width="10%">
                                                                                        <asp:Label ID="lblReplies" runat="server" Text='<%# Eval("Replies") %>' />
                                                                                    </td>
                                                                                    <td align="left" valign="middle" width="25%">
                                                                                        <table>
                                                                                            <tbody>
                                                                                                <tr>
                                                                                                    <td>
                                                                                                        <asp:Image ID="imgLR" runat="server" BorderColor="Black" BorderStyle="Solid" BorderWidth="1px"
                                                                                                            Height="40px" Width="40px" AlternateText="ProfileImage" ImageUrl="~/GetImage.aspx?UserID=0" />
                                                                                                    </td>
                                                                                                    <td>
                                                                                                        <table>
                                                                                                            <tbody>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblUserLR" runat="server" Text='' />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                                <tr>
                                                                                                                    <td>
                                                                                                                        <asp:Label ID="lblTimeLR" runat="server" Text='' Font-Size="Smaller" />
                                                                                                                    </td>
                                                                                                                </tr>
                                                                                                            </tbody>
                                                                                                        </table>
                                                                                                    </td>
                                                                                                </tr>
                                                                                            </tbody>
                                                                                        </table>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td colspan="3">
                                                                                        <hr />
                                                                                    </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </div>
                                                                </ItemTemplate>
                                                                <EmptyDataTemplate>
                                                                    <span>No Discusstion Is Available.</span>
                                                                </EmptyDataTemplate>
                                                                <InsertItemTemplate>
                                                                </InsertItemTemplate>
                                                                <LayoutTemplate>
                                                                    <div id="itemPlaceholderContainerZupon" runat="server" style="font-family: Verdana, Arial, Helvetica, sans-serif;">
                                                                        <span id="itemPlaceholderZupon" runat="server" />
                                                                    </div>
                                                                </LayoutTemplate>
                                                            </asp:ListView>
                                                            <div style="text-align: center; font-family: Verdana, Arial, Helvetica, sans-serif;
                                                                color: #000000;">
                                                                <asp:DataPager ID="ListDataPagerZupon" runat="server" PageSize="20" EnableViewState="true"
                                                                    PagedControlID="lvZuponTopics">
                                                                    <Fields>
                                                                        <asp:NextPreviousPagerField ButtonType="Link" FirstPageText="<<  " ShowFirstPageButton="True"
                                                                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                        <asp:NumericPagerField ButtonCount="10" />
                                                                        <asp:NextPreviousPagerField ButtonType="Link" LastPageText="  >>" ShowLastPageButton="True"
                                                                            ShowNextPageButton="False" ShowPreviousPageButton="False" />
                                                                    </Fields>
                                                                </asp:DataPager>
                                                            </div>
                                                        </div>
                                                        <div style="text-align: left; background-color: White; height: 135px; width: auto;
                                                            max-width: 95%; margin-top: 10px; font-size: medium">
                                                            <hr />
                                                            <hr />
                                                            <asp:LoginView ID="LoginViewToStatrtZuponDiscussion" runat="server">
                                                                <AnonymousTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="true" Font-Size="Larger"
                                                                            NavigateUrl="~/Login.aspx" Text="Sign in to start discussion"></asp:HyperLink>
                                                                    </div>
                                                                </AnonymousTemplate>
                                                                <LoggedInTemplate>
                                                                    <div style="margin: 8px 4px 4px 8px">
                                                                        <table cellpadding="0px" cellspacing="0px">
                                                                            <tr>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px">
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:Label ID="lblSome1" runat="server" Font-Bold="true" Font-Size="8pt" Text="Discussion Topic : " />
                                                                                            </td>
                                                                                        </tr>
                                                                                        <tr>
                                                                                            <td>
                                                                                                <asp:TextBox ID="txtZuponDiscussionTopic" runat="server" TextMode="MultiLine" Columns="50"
                                                                                                    Rows="10" Height="80px" MaxLength="2000"></asp:TextBox>
                                                                                            </td>
                                                                                        </tr>
                                                                                    </table>
                                                                                </td>
                                                                                <td>
                                                                                    <table cellpadding="0px" cellspacing="0px" style="height: 100%">
                                                                                        <tbody>
                                                                                            <tr>
                                                                                                <td valign="top">
                                                                                                    <asp:RequiredFieldValidator ID="RFVTPC" Font-Size="10pt" runat="server" ControlToValidate="txtZuponDiscussionTopic"
                                                                                                        ValidationGroup="VG4" ErrorMessage="Discussion topic can not be blank"></asp:RequiredFieldValidator>
                                                                                                </td>
                                                                                            </tr>
                                                                                            <tr>
                                                                                                <td valign="bottom">
                                                                                                    <asp:Button ID="btnZuponDiscussionTopic" runat="server" Text="Submit" ValidationGroup="VG4"
                                                                                                        CausesValidation="true" OnClick="btnZuponDiscussionTopic_Click" />
                                                                                                </td>
                                                                                            </tr>
                                                                                        </tbody>
                                                                                    </table>
                                                                                </td>
                                                                            </tr>
                                                                        </table>
                                                                    </div>
                                                                </LoggedInTemplate>
                                                            </asp:LoginView>
                                                        </div>
                                                        <asp:ObjectDataSource ID="ODSZuponTopics" runat="server" TypeName="DiscussionMaster"
                                                            SelectMethod="DiscussionMaster_Zupon" SelectCountMethod="DiscussionMasterCount_Zupon"
                                                            EnablePaging="True">
                                                            <SelectParameters>
                                                                <asp:Parameter Name="minimumRow" Type="Int32" DefaultValue="3" />
                                                                <asp:Parameter Name="startPageIndex" Type="Int32" DefaultValue="0" />
                                                                <asp:Parameter Name="startRowIndex" Type="Int32" DefaultValue="0" />
                                                            </SelectParameters>
                                                        </asp:ObjectDataSource>
                                                    </div>
                                                </telerik:RadPageView>
                                            </telerik:RadMultiPage>
                                        </td>
                                        <td background="images/right_bg.jpg">
                                            <img src="images/right_bg.jpg" width="19" height="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <img src="images/curve2.jpg" width="19" height="14" />
                                        </td>
                                        <td background="images/bottom_bg.jpg">
                                            <img src="images/bottom_bg.jpg" width="5" height="14" />
                                        </td>
                                        <td>
                                            <img src="images/curve3.jpg" width="19" height="14" />
                                        </td>
                                    </tr>
                                </table>
                         <%--   </ContentTemplate>
                        </asp:UpdatePanel>--%>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
